package com.tg.app.helper;

import com.tg.data.bean.DeviceItem;

//设备ui的帮助类，ui有关的变量放在这里
public class DeviceUIHelper {
    public static final int PLAY_MODE_BACK_CLOUD = 1;
    private boolean mIsScrolled;

    public boolean isClickOpenDeviceBtn() {
        return mIsClickOpenDeviceBtn;
    }

    public void setClickOpenDeviceBtn(boolean clickOpenDeviceBtn) {
        mIsClickOpenDeviceBtn = clickOpenDeviceBtn;
    }

    private boolean mIsClickOpenDeviceBtn;

    public int getPlaybackDisplay() {
        return mPlaybackDisplay;
    }

    public void setPlaybackDisplay(int playbackDisplay) {
        mPlaybackDisplay = playbackDisplay;
    }

    private int mPlaybackDisplay;  //当前播放模式

    public boolean isScrolled(){
        return mIsScrolled;
    }

    public void setIsScrolled(boolean isScrolled){
        mIsScrolled = isScrolled;
    }

    public DeviceUIHelper() {
        mIsScrolled = false;
    }

    public static boolean canScrolled(DeviceItem deviceItem) {
        if (DeviceHelper.isCarPrimary(deviceItem)){
            return false;
        }
        return DeviceHelper.hasServe(deviceItem) || !DeviceHelper.isWifiDevice(deviceItem);
    }
}
